package com.hyb.hybmodulessearch.domain;

import cn.easyes.annotation.HighLight;
import cn.easyes.annotation.IndexField;
import cn.easyes.annotation.IndexId;
import cn.easyes.annotation.rely.Analyzer;
import cn.easyes.annotation.rely.FieldStrategy;
import cn.easyes.annotation.rely.FieldType;
import cn.easyes.annotation.rely.IdType;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class ActivityResponseVo {

//    唯一id
    @IndexId(type = IdType.CUSTOMIZE)
    private Long id;

    @HighLight
    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)
    private String name;


    @HighLight
    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)
    private String title;


    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)
    private String number;

    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)
    private String introduce;

    @HighLight
    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)
    private String position;

    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)
    private String visitType;

    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)
    private String status;

    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)
    private String visitRange;

    @HighLight
    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)
    private String label;

    //是否支持请假
    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)
    private String prepareField1;

    //负责人
    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)
    private String prepareField2;

    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)
    private String level;

    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)
    private String classification;

    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.DATE,dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.DATE,dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date lastTime;

    @IndexField(strategy = FieldStrategy.NOT_EMPTY)
    private String imagesUrls;

    @IndexField(strategy = FieldStrategy.NOT_EMPTY)
    private String videoUrls;


    //默认keyword
    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)
    private Long hot;

    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)
    private Long thrumb;

    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)
    private BigDecimal intergal;

    //搜索框内容
    @HighLight
    @IndexField(fieldType = FieldType.TEXT)
    private String content;

    @IndexField(exist = false)
    private Integer pageSize;

    @IndexField(exist = false)
    private Integer pageNum;
}
